﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace TradeForm.config
{

    public class Settings
    {
        [XmlArrayItem("settings")]
        //public Setting[] settings;
        public List<Setting> settings = new List<Setting>();
    }

    [Serializable]
    public class Setting
    {
        private string _name;
        [XmlAttribute("name")]
        public string Name
        {
            get { return _name; }
            set { this._name = value; }
        }

        private string _cname;
        [XmlAttribute("cname")]
        public string CName
        {
            get { return _cname; }
            set { this._cname = value; }
        }

        private float  _posX;
        [XmlAttribute("PosX")]
        public float PosX
        {
            get { return _posX; }
            set { this._posX = value; }
        }

        private float _posY;
        [XmlAttribute("PosY")]
        public float PosY
        {
            get { return _posY; }
            set { this._posY = value; }
        }
    }
}
